package com.example.demo.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class User {
    private Integer id;
    private String uid;
    private String nickname;
    private String pwd;
    private String usertype; //1是管理员，0是用户

    public User(String uid){
        this.uid = uid;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updatedate;
}
